Ext.define("WebApp.core.view.form.QueryValueField", {
			extend : "Ext.panel.Panel",
			xtype : "QueryValueField",
			layout : "hbox",
			border:0,
			autoRender : true,
			
			initComponent : function() {

				switch (this.type) {
					case 1 :
							
						break;
					case 2 :
						Ext.apply(this, {
									items : [{
												xtype : 'textfield',
												width : 100,
												autoRender:true
											}]
								});
						break;
					case 3 :
						Ext.apply(this, {
									items : [{
												xtype : 'textfield',
												width : 100,
												autoRender:true
											}]
								});
						break;
					case 4 :
						Ext.apply(this, {
									items : [{
												xtype : 'textfield',
												width : 60,
												autoRender:true
											}, {
												xtype : 'textfield',
												width : 60,
												autoRender:true
											}]
								});
						break;
				}
				
				this.callParent(arguments);
				console.info("获取文本域");
				
				console.log(this.down('textfield'));
			},
			getValue:function(){
				var field = this.down('textfield');
				console.log(field);
				switch(this.type){
					case 1:
						return {};
						break;
					case 2:
						return {singelValue:field.getValue()};
						break;
					case 3:
						return {listValue:field.getValue().split(",")};
						break;
					case 4:
						return {betweenValue:[this.items[0].getValue(),this.items[1].getValue()]};
						break;
				}
			}
		})